export const PLACEHOLDER = '-';
export const STATUS_OPTIONS = [
  {
    value: -1,
    label: '未启用',
  },
  {
    value: 0,
    label: '停用',
  },
  {
    value: 1,
    label: '启用',
  },
];

export const APP_CONFIG = {
  unit: {
    app_name: '园所信息管理系统',
    menu: [
      {
        order_index: 1,
        power_name: '园所信息管理（规划）',
        power_url: '/unit/planning',
        create_time: '2024-03-18T00:00:00',
        power_code: 'planning',
        parent_power_code: '',
        power_type: 'power_type_menu',
        page_button: [],
        list_button: [],
      },
      {
        order_index: 2,
        power_name: '园所信息管理（学校）',
        power_url: '/unit/school',
        create_time: '2024-03-18T00:00:00',
        power_code: 'school',
        power_icon: '',
        parent_power_code: '',
        power_type: 'power_type_menu',
        page_button: [],
        list_button: [],
      },
      {
        order_index: 3,
        power_name: '园所配置管理',
        power_url: '',
        create_time: '2024-03-18T00:00:00',
        power_code: 'config',
        power_icon: '',
        parent_power_code: '',
        power_type: 'power_type_menu',
        children: [
          {
            order_index: 31,
            power_name: '年级管理',
            power_url: '/unit/grade',
            create_time: '2024-03-18T00:00:00',
            power_code: 'grade',
            power_icon: '',
            parent_power_code: '',
            power_type: 'power_type_menu',
          },
          {
            order_index: 32,
            power_name: '班级管理',
            power_url: '/unit/class',
            create_time: '2024-03-18T00:00:00',
            power_code: 'class',
            power_icon: '',
            parent_power_code: '',
            power_type: 'power_type_menu',
          },
          {
            order_index: 33,
            power_name: '课程管理',
            power_url: '/unit/course',
            create_time: '2024-03-18T00:00:00',
            power_code: 'course',
            power_icon: '',
            parent_power_code: '',
            power_type: 'power_type_menu',
          },
          {
            order_index: 34,
            power_name: '专业管理',
            power_url: '/unit/major',
            create_time: '2024-03-18T00:00:00',
            power_code: 'major',
            power_icon: '',
            parent_power_code: '',
            power_type: 'power_type_menu',
          },
        ],
      },
    ],
  },
  tchr: {
    app_name: '教师信息管理系统',
    menu: [
      {
        order_index: 0,
        power_name: '新教职工管理',
        power_url: '',
        create_time: '2024-03-18T00:00:00',
        power_code: 'onboarding',
        power_icon: '',
        parent_power_code: '',
        power_type: 'power_type_menu',
        children: [
          {
            order_index: 11,
            power_name: '新教职工入职',
            power_url: '/tchr/onboarding',
            create_time: '2024-03-18T00:00:00',
            power_code: 'onboarding',
            parent_power_code: '',
            power_type: 'power_type_menu',
            page_button: [],
            list_button: [],
          },
          {
            order_index: 12,
            power_name: '新教职工审批',
            power_url: '/tchr/onboarding/approve',
            create_time: '2024-03-18T00:00:00',
            power_code: 'approve',
            parent_power_code: '',
            power_type: 'power_type_menu',
            page_button: [],
            list_button: [],
          },
        ],
      },
      {
        order_index: 2,
        power_name: '在职教职工管理',
        power_url: '',
        create_time: '2024-03-18T00:00:00',
        power_code: 'employed',
        parent_power_code: '',
        power_type: 'power_type_menu',
        page_button: [],
        list_button: [],
        children: [
          {
            order_index: 21,
            power_name: '在职教职工管理',
            power_url: '/tchr/employed',
            create_time: '2024-03-18T00:00:00',
            power_code: 'employed',
            parent_power_code: '',
            power_type: 'power_type_menu',
            page_button: [],
            list_button: [],
          },
          {
            order_index: 22,
            power_name: '新教职工审批',
            power_url: '/tchr/employed/approve',
            create_time: '2024-03-18T00:00:00',
            power_code: 'employedapprove',
            parent_power_code: '',
            power_type: 'power_type_menu',
            page_button: [],
            list_button: [],
          },
          {
            order_index: 23,
            power_name: '岗位调动',
            power_url: '/tchr/employed/workchange',
            create_time: '2024-03-18T00:00:00',
            power_code: 'employedworkchange',
            parent_power_code: '',
            power_type: 'power_type_menu',
            page_button: [],
            list_button: [],
          },
          {
            order_index: 24,
            power_name: '人员信息调入',
            power_url: '/tchr/employed/transferin',
            create_time: '2024-03-18T00:00:00',
            power_code: 'employedworktransferin',
            parent_power_code: '',
            power_type: 'power_type_menu',
            page_button: [],
            list_button: [],
          },
          {
            order_index: 25,
            power_name: '人员信息调出',
            power_url: '/tchr/employed/transferout',
            create_time: '2024-03-18T00:00:00',
            power_code: 'employedworktransferout',
            parent_power_code: '',
            power_type: 'power_type_menu',
            page_button: [],
            list_button: [],
          },
        ],
      },
      {
        order_index: 3,
        power_name: '系统管理',
        power_url: '',
        create_time: '2024-03-18T00:00:00',
        power_code: 'sysmg',
        parent_power_code: '',
        power_type: 'power_type_menu',
        page_button: [],
        list_button: [],
        children: [
          {
            order_index: 31,
            power_name: '系统配置',
            power_url: '/trch/trchsys/config',
            create_time: '2024-03-18T00:00:00',
            power_code: 'trchsysconfig',
            parent_power_code: '',
            power_type: 'power_type_menu',
            page_button: [],
            list_button: [],
          },
          {
            order_index: 32,
            power_name: '任务管理',
            power_url: '/trch/trchsys/task',
            create_time: '2024-03-18T00:00:00',
            power_code: 'trchsystask',
            parent_power_code: '',
            power_type: 'power_type_menu',
            page_button: [],
            list_button: [],
          },
        ],
      },
    ],
  },
  stu: {
    app_name: '学生信息管理系统',
    menu: [
      {
        order_index: 1,
        power_name: '新学生信息管理',
        power_url: '',
        create_time: '2024-03-18T00:00:00',
        power_code: '/stu/newstudent',
        power_icon: '',
        parent_power_code: '',
        power_type: 'power_type_menu',
        children: [
          {
            order_index: 11,
            power_name: '新生入学管理',
            power_url: '/stu/newstudent',
            create_time: '2024-03-18T00:00:00',
            power_code: 'newstudent1',
            parent_power_code: '',
            power_type: 'power_type_menu',
            page_button: [],
            list_button: [],
          },
          {
            order_index: 12,
            power_name: '分班管理',
            power_url: '/stu/newstudent/classroom',
            create_time: '2024-03-18T00:00:00',
            power_code: 'newstudent2',
            parent_power_code: 'classroom',
            power_type: 'power_type_menu',
            page_button: [],
            list_button: [],
          },
          {
            order_index: 13,
            power_name: '届别管理',
            power_url: '/stu/newstudent/academia',
            create_time: '2024-03-18T00:00:00',
            power_code: 'newstudent3',
            parent_power_code: 'academia',
            power_type: 'power_type_menu',
            page_button: [],
            list_button: [],
          },
        ],
      },
      {
        order_index: 2,
        power_name: '在校学生信息管理',
        create_time: '2024-03-18T00:00:00',
        power_code: 'instudent',
        parent_power_code: '',
        power_type: 'power_type_menu',
        page_button: [],
        list_button: [],
        children: [
          {
            order_index: 21,
            power_name: '在校学生信息管理',
            power_url: '/stu/instudent',
            create_time: '2024-03-18T00:00:00',
            power_code: 'instudent1',
            parent_power_code: '',
            power_type: 'power_type_menu',
            page_button: [],
            list_button: [],
          },
          {
            order_index: 22,
            power_name: '转学管理',
            power_url: '/stu/instudent/transfer',
            create_time: '2024-03-18T00:00:00',
            power_code: 'instudent4',
            power_type: 'power_type_menu',
            page_button: [],
            list_button: [],
          },
          {
            order_index: 22,
            power_name: '转入信息管理',
            power_url: '/stu/instudent/checkin',
            create_time: '2024-03-18T00:00:00',
            power_code: 'instudent2',
            power_type: 'power_type_menu',
            page_button: [],
            list_button: [],
          },
          {
            order_index: 23,
            power_name: '转出信息管理',
            power_url: '/stu/instudent/checkout',
            create_time: '2024-03-18T00:00:00',
            power_code: 'instudent3',
            power_type: 'power_type_menu',
            page_button: [],
            list_button: [],
          },
          {
            order_index: 24,
            power_name: '异动管理',
            power_url: '/stu/instudent/innerTransfer',
            create_time: '2024-03-18T00:00:00',
            power_code: 'instudent5',
            power_type: 'power_type_menu',
            page_button: [],
            list_button: [],
          },
          {
            order_index: 25,
            power_name: '临时就读',
            power_url: '/stu/instudent/emporaryBorrowing',
            create_time: '2024-03-18T00:00:00',
            power_code: 'instudent6',
            power_type: 'power_type_menu',
            page_button: [],
            list_button: [],
          },
        ],
      },
      {
        order_index: 3,
        power_name: '毕业生信息管理',
        power_url: '/stu/graduation',
        create_time: '2024-03-18T00:00:00',
        power_code: 'graduation',
        power_icon: '',
        parent_power_code: '',
        power_type: 'power_type_menu',
      },
    ],
  },
  mg: {
    app_name: '管理系统',
    menu: [
      {
        order_index: 1,
        power_name: '事业单位管理',
        power_url: '/mg/public',
        create_time: '2024-03-18T00:00:00',
        power_code: 'public',
        parent_power_code: '',
        power_type: 'power_type_menu',
        page_button: [],
        list_button: [],
      },
      {
        order_index: 1,
        power_name: '行政单位管理',
        power_url: '/mg/agency',
        create_time: '2024-03-18T00:00:00',
        power_code: 'agency',
        parent_power_code: '',
        power_type: 'power_type_menu',
        page_button: [],
        list_button: [],
      },
    ],
  },
};

export const APPROVAL_STATUS = [
  { label: '未审批', value: 'pending' },
  { label: '审批中', value: 'progressing' },
  { label: '已撤回', value: 'revoked' },
  { label: '已通过', value: 'approved' },
  { label: '已拒绝', value: 'rejected' },
];
export const AUDIT_STATUS = [
  { label: '申请中', value: 'needaudit' },
  { label: '已通过', value: 'pass' },
  { label: '已拒绝', value: 'refuse' },
];
export const DIRECTION = [
  { label: '转入', value: 'in' },
  { label: '转出', value: 'out' },
];

export const IMPORT_EXCEL_TEMPLATE = {
  planning_school: 'https://minio.f123.pub/k8s/school-oms/%E5%AD%A6%E6%A0%A1%28%E8%A7%84%E5%88%92%E5%8F%A3%E5%BE%84%29%E5%BF%AB%E6%8D%B7%E4%BF%A1%E6%81%AF%E5%AF%BC%E5%85%A5%E6%A8%A1%E7%89%88.xlsx',
  school: 'https://minio.f123.pub/k8s/school-oms/%E5%AD%A6%E6%A0%A1%E5%BF%AB%E6%8D%B7%E4%BF%A1%E6%81%AF%E5%AF%BC%E5%85%A5%E6%A8%A1%E7%89%88.xlsx',
  new_teachers: '', // 新教师模版
  teachers_basic: 'https://minio.f123.pub/k8s/school-oms/%E6%95%99%E8%81%8C%E5%B7%A5%E5%9F%BA%E7%A1%80%E4%BF%A1%E6%81%AF%E5%AF%BC%E5%85%A5%E6%A8%A1%E7%89%881.xlsx', // 教师基础信息模版
  teachers_shortcut: 'https://minio.f123.pub/k8s/school-oms/%E6%95%99%E8%81%8C%E5%B7%A5%E5%BF%AB%E6%8D%B7%E4%BF%A1%E6%81%AF%E5%AF%BC%E5%85%A5%E6%A8%A1%E7%89%881.xlsx', // 教师快捷模版
  teachers_extend: '', // 教师扩展信息模版
  institution: 'https://minio.f123.pub/k8s/school-oms/%E8%A1%8C%E6%94%BF%E4%BA%8B%E4%B8%9A%E5%8D%95%E4%BD%8D%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF.xlsx', // 行政事业单位管理模版
  new_student: 'https://minio.f123.pub/k8s/school-oms/%E5%AD%A6%E7%94%9F%E4%BF%A1%E6%81%AF%E5%AF%BC%E5%85%A5%E6%A8%A1%E7%89%881.xlsx',
  class: 'https://minio.f123.pub/k8s/school-oms/%E7%8F%AD%E7%BA%A7%E4%BF%A1%E6%81%AF%E5%AF%BC%E5%85%A5%E6%A8%A1%E7%89%881.xlsx', // 班级模版
};
